home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / Bitmap / jpeg-6a / IJGSources / jpegtran.1 < prev    next >
Encoding:
Text File  |  1996-09-17  |  4.4 KB  |  151 lines  |  [TEXT/MPS ]

  1. .TH JPEGTRAN 1 "15 June 1995"
  2. .SH NAME
  3. jpegtran \- lossless transcoding of JPEG files
  4. .SH SYNOPSIS
  5. .B jpegtran
  6. [
  7. .I options
  8. ]
  9. [
  10. .I filename
  11. ]
  12. .LP
  13. .SH DESCRIPTION
  14. .LP
  15. .B jpegtran
  16. translates JPEG files from one variant of JPEG to another, for example
  17. from baseline JPEG to progressive JPEG.  The transformation is lossless:
  18. no image degradation occurs, which would not be true if you used
  19. .B djpeg
  20. followed by
  21. .BR cjpeg .
  22. However, you cannot alter the image quality, because that would not be
  23. a lossless operation.
  24. .B jpegtran
  25. reads the named JPEG/JFIF file, or the standard input if no file is
  26. named, and produces a JPEG/JFIF file on the standard output.
  27. .SH OPTIONS
  28. .B jpegtran
  29. accepts a subset of the switches recognized by
  30. .BR cjpeg .
  31. If you specify no switches, you get a plain baseline JPEG output file.
  32. .PP
  33. All switch names may be abbreviated; for example,
  34. .B \-optimize
  35. may be written
  36. .B \-opt
  37. or
  38. .BR \-o .
  39. Upper and lower case are equivalent.
  40. British spellings are also accepted (e.g.,
  41. .BR \-optimise ),
  42. though for brevity these are not mentioned below.
  43. .PP
  44. The basic switches are:
  45. .TP
  46. .B \-optimize
  47. Perform optimization of entropy encoding parameters.  Without this, default
  48. encoding parameters are used.
  49. .B \-optimize
  50. usually makes the JPEG file a little smaller, but at the price of slower
  51. compression.  Note that
  52. .B \-progressive
  53. implies
  54. .BR \-optimize .
  55. .TP
  56. .B \-progressive
  57. Create progressive JPEG file (see below).
  58. .PP
  59. The
  60. .B \-progressive
  61. switch creates a "progressive JPEG" file.  In this type of JPEG file, the data
  62. is stored in multiple scans of increasing quality.  If the file is being
  63. transmitted over a slow communications link, the decoder can use the first
  64. scan to display a low-quality image very quickly, and can then improve the
  65. display with each subsequent scan.  The final image is exactly equivalent to a
  66. standard JPEG file of the same quality setting, and the total file size is
  67. about the same --- often a little smaller.
  68. .B Caution:
  69. progressive JPEG is not yet widely implemented, so many decoders will be
  70. unable to view a progressive JPEG file at all.
  71. .PP
  72. Switches for advanced users:
  73. .TP
  74. .BI \-restart " N"
  75. Emit a JPEG restart marker every N MCU rows, or every N MCU blocks if "B" is
  76. attached to the number.
  77. .B \-restart 0
  78. (the default) means no restart markers.
  79. .TP
  80. .BI \-maxmemory " N"
  81. Set limit for amount of memory to use in processing large images.  Value is
  82. in thousands of bytes, or millions of bytes if "M" is attached to the
  83. number.  For example,
  84. .B \-max 4m
  85. selects 4000000 bytes.  If more space is needed, temporary files will be used.
  86. .TP
  87. .BI \-outfile " name"
  88. Send output image to the named file, not to standard output.
  89. .TP
  90. .B \-verbose
  91. Enable debug printout.  More
  92. .BR \-v 's
  93. give more output.  Also, version information is printed at startup.
  94. .TP
  95. .B \-debug
  96. Same as
  97. .BR \-verbose .
  98. .PP
  99. The
  100. .B \-restart
  101. option inserts extra markers that allow a JPEG decoder to resynchronize after
  102. a transmission error.  Without restart markers, any damage to a compressed
  103. file will usually ruin the image from the point of the error to the end of the
  104. image; with restart markers, the damage is usually confined to the portion of
  105. the image up to the next restart marker.  Of course, the restart markers
  106. occupy extra space.  We recommend
  107. .B \-restart 1
  108. for images that will be transmitted across unreliable networks such as Usenet.
  109. .PP
  110. Switches for wizards:
  111. .TP
  112. .BI \-scans " file"
  113. Use the scan script given in the specified text file.
  114. .PP
  115. The "wizard" switches are intended for experimentation with JPEG.  If you
  116. don't know what you are doing, \fBdon't use them\fR.  These switches are
  117. documented further in the file wizard.doc.
  118. .SH EXAMPLES
  119. .LP
  120. This example converts a baseline JPEG file to progressive form:
  121. .IP
  122. .B jpegtran \-progressive
  123. .I foo.jpg
  124. .B >
  125. .I fooprog.jpg
  126. .SH ENVIRONMENT
  127. .TP
  128. .B JPEGMEM
  129. If this environment variable is set, its value is the default memory limit.
  130. The value is specified as described for the
  131. .B \-maxmemory
  132. switch.
  133. .B JPEGMEM
  134. overrides the default value specified when the program was compiled, and
  135. itself is overridden by an explicit
  136. .BR \-maxmemory .
  137. .SH SEE ALSO
  138. .BR cjpeg (1),
  139. .BR djpeg (1),
  140. .BR rdjpgcom (1),
  141. .BR wrjpgcom (1)
  142. .br
  143. Wallace, Gregory K.  "The JPEG Still Picture Compression Standard",
  144. Communications of the ACM, April 1991 (vol. 34, no. 4), pp. 30-44.
  145. .SH AUTHOR
  146. Independent JPEG Group
  147. .SH BUGS
  148. Arithmetic coding is not supported for legal reasons.
  149. .PP
  150. Still not as fast as we'd like.
  151.